alist = [22, 1, 15, 3, 46, 75, 6, 99]
for i in range(0, len(alist) - 1):
    for j in range(0, len(alist) - i - 1):
        if alist[j] > alist[j + 1]:
            alist[j], alist[j + 1] = alist[j + 1], alist[j]

print(alist)
# 找到张三在第几班
classes = [["李四", "哑巴", "马斯", "张帅"], ["刘德华", "张三", "二胖"], ["马六", "王五", "刘子"]]
i = 1
for c in classes:
    # c是班级
    for s in c:
        if s == "张三":
            print("张三在第%d班" % i)
    i += 1